using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._3DAnalystTools._TerrainDataset
{
    /// <summary>
    /// <para>Change Terrain Resolution Bounds</para>
    /// <para>Changes the pyramid levels at which a feature class will be enforced for a given terrain dataset.</para>
    /// <para>更改对给定地形数据集强制实施要素类的金字塔级别。</para>
    /// </summary>    
    [DisplayName("Change Terrain Resolution Bounds")]
    public class ChangeTerrainResolutionBounds : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public ChangeTerrainResolutionBounds()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_terrain">
        /// <para>Input Terrain</para>
        /// <para>The terrain dataset to process.</para>
        /// <para>要处理的 terrain 数据集。</para>
        /// </param>
        /// <param name="_feature_class">
        /// <para>Input Feature Class</para>
        /// <para>The feature class referenced by the terrain that will have its pyramid-level resolutions modified.</para>
        /// <para>将修改其金字塔级分辨率的地形所引用的要素类。</para>
        /// </param>
        public ChangeTerrainResolutionBounds(object _in_terrain, object _feature_class)
        {
            this._in_terrain = _in_terrain;
            this._feature_class = _feature_class;
        }
        public override string ToolboxName => "3D Analyst Tools";

        public override string ToolName => "Change Terrain Resolution Bounds";

        public override string CallName => "3d.ChangeTerrainResolutionBounds";

        public override List<string> AcceptEnvironments => ["autoCommit", "scratchWorkspace", "workspace"];

        public override object[] ParameterInfo => [_in_terrain, _feature_class, _lower_pyramid_resolution, _upper_pyramid_resolution, _overview.GetGPValue(), _derived_out_terrain];

        /// <summary>
        /// <para>Input Terrain</para>
        /// <para>The terrain dataset to process.</para>
        /// <para>要处理的 terrain 数据集。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Terrain")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_terrain { get; set; }


        /// <summary>
        /// <para>Input Feature Class</para>
        /// <para>The feature class referenced by the terrain that will have its pyramid-level resolutions modified.</para>
        /// <para>将修改其金字塔级分辨率的地形所引用的要素类。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Feature Class")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _feature_class { get; set; }


        /// <summary>
        /// <para>Lower Pyramid Resolution</para>
        /// <para>The new lower pyramid-level resolution for the chosen feature class.</para>
        /// <para>所选要素类的新下金字塔级别分辨率。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Lower Pyramid Resolution")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public double? _lower_pyramid_resolution { get; set; } = null;


        /// <summary>
        /// <para>Upper Pyramid Resolution</para>
        /// <para>The new upper pyramid-level resolution for the chosen feature class.</para>
        /// <para>所选要素类的新上金字塔级别分辨率。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Upper Pyramid Resolution")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public double? _upper_pyramid_resolution { get; set; } = null;


        /// <summary>
        /// <para>Contributes to Overview</para>
        /// <para><xdoc>
        ///   <para>Specifies whether the feature class will contribute to the overview of the terrain dataset.</para>
        ///   <bulletList>
        ///     <bullet_item>Checked—Enforces the feature class at the overview display of the terrain dataset. This is the default.</bullet_item><para/>
        ///     <bullet_item>Unchecked—Omits the feature class from the overview display of the terrain dataset.</bullet_item><para/>
        ///   </bulletList>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>指定要素类是否有助于地形数据集的概述。</para>
        ///   <bulletList>
        ///     <bullet_item>选中 - 在 terrain 数据集的概览显示处强制执行要素类。这是默认设置。</bullet_item><para/>
        ///     <bullet_item>未选中 - 从地形数据集的概览显示中省略要素类。</bullet_item><para/>
        ///   </bulletList>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Contributes to Overview")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public _overview_value _overview { get; set; } = _overview_value._true;

        public enum _overview_value
        {
            /// <summary>
            /// <para>OVERVIEW</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("OVERVIEW")]
            [GPEnumValue("true")]
            _true,

            /// <summary>
            /// <para>NO_OVERVIEW</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("NO_OVERVIEW")]
            [GPEnumValue("false")]
            _false,

        }

        /// <summary>
        /// <para>Updated Input Terrain</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Updated Input Terrain")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _derived_out_terrain { get; set; }


        public ChangeTerrainResolutionBounds SetEnv(int? autoCommit = null, object scratchWorkspace = null, object workspace = null)
        {
            base.SetEnv(autoCommit: autoCommit, scratchWorkspace: scratchWorkspace, workspace: workspace);
            return this;
        }

    }

}